<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">

<title>用户注册</title>
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>jslib/bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/theme.css">
<link rel="stylesheet"
	href="<%=basePath%>jslib/font-awesome/css/font-awesome.css">
<script src="<%=basePath%>jslib/jquery-1.7.2.min.js"
	type="text/javascript"></script>
<style type="text/css">
#line-chart {
	height: 300px;
	width: 800px;
	margin: 0px auto;
	margin-top: 1em;
}

.brand {
	font-family: georgia, serif;
}

.brand .first {
	color: #ccc;
	font-style: italic;
}

.brand .second {
	color: #fff;
	font-weight: bold;
}
</style>
<!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
</head>

<!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
<!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
<!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
<!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<body class="">
	<!--<![endif]-->
	<div class="navbar">
		<div class="navbar-inner">
			<ul class="nav pull-right">
			</ul>
			<a class="brand" href="index.jsp"><span class="first">欢迎</span> <span
				class="second">注册（感谢您的支持）</span> </a>
		</div>
	</div>

	<div class="row-fluid">
		<div class="dialog">
			<div class="block">
				<p class="block-heading">注册</p>
				<div class="block-body">
						<form method="post" action="<%=basePath%>managerregister">
							<div class="btn-toolbar">
								<!-- <input type="submit" class="btn btn-primary" value="提交 "> -->
								<%-- <a href="<%=basePath%>film/user/userlist" class="btn">取消</a> --%>
							</div>

							<div class="well">
								<div class="tab-pane active in">
									<label> 用户名： </label>
									 <input type="text" name="username"
										maxlength="20"> 
									<label> 密码： </label> <input
										type="password" name="password" maxlength="20"> <label>
										真实姓名： </label> <input type="text" name="usertruename" maxlength="30">
									<label> TEL： </label> 
									<input type="text" name="tel"
										maxlength="30"> 
									<label> Email： </label> <input
										type="text" name="email" maxlength="30">
									<!-- 还没完成呢  从数据库里调用角色的信息 -->
									<label> 选择角色： </label> 
									<select name="roleid">
										<c:forEach items="${rolelist}" var="role">
											<option value="${role.roleid}">${role.rolename}</option>
										</c:forEach>
									</select> <label> 会员： </label> <select name="member">
										<option value="1">会员</option>
										<option value="0">普通用户</option>
									</select> <label> 状态： </label> <select name="userstate">
										<option value="1">正常</option>
										<option value="0">锁定</option>
									</select>
									<input type="submit" class="btn btn-primary pull-right" value="提交信息" />
									<div class="clearfix"></div>
									<div style="color: red">${msg}</div>
								</div>
							</div>
						</form>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
